cmake_minimum_required(VERSION 3.20)

project(papilio_test_subdir LANGUAGES CXX)

add_subdirectory(
    ../..
    # Adding a parent directory as a subdirectory needs to specify its binary_dir
    ${PROJECT_BINARY_DIR}/papilio
)

add_executable(papilio_test_subdir "test_subdir.cpp")
target_link_libraries(papilio_test_subdir PRIVATE papilio::papilio)
